package Pro;

import java.awt.*;

import javax.swing.*;

public class Panel extends JPanel{
	/**
	 * 
	 */
	private JButton a;
	private static final long serialVersionUID = 1L;

	public Panel(){
		setLayout(null);
		setBorder(BorderFactory.createTitledBorder("Test"));
     //setBorder(BorderFactory.createTitledBorder(null, "TEST", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION));
		setBackground(Color.WHITE);
		setComponent();
		//setBounds(15, 40, 309, 136);
	}
	public void setComponent(){
		a = new JButton("OK");
		add(a);
		a.setBounds(20, 10, 20, 20); 
	}
}
